package cn.yl.user.server.service;

import cn.yl.api.server.result.Result;
import cn.yl.user.server.entity.User;
import cn.yl.user.server.entity.dto.UserDto;
import cn.yl.user.server.entity.vo.UserVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.UnsupportedEncodingException;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author yl
 * @since 2022-04-22
 */
public interface UserService extends IService<User> {

    Result login(UserVo userVo);

    UserDto getUserDtoByJwt(String jwt);

    Boolean updateByJwt(UserVo userVo, String jwt);

    String  loginByWechat(String access_token, String openid) throws UnsupportedEncodingException;

}
